package cn.geminis.workflow.service.utils;

import org.flowable.engine.repository.ProcessDefinitionQuery;
import org.springframework.util.StringUtils;

/**
 * @author puddi
 */
public class ProcessQueryUtils {

    public static void filterCategory(ProcessDefinitionQuery query, String category) {
        if (StringUtils.hasText(category)) {
            query.processDefinitionCategoryLike(category);
        }
    }

}
